<?php

header("Content-type: text/html; charset=utf-8");
error_reporting(E_ERROR | E_WARNING | E_PARSE);

// 检测PHP环境
if (version_compare(PHP_VERSION, '5.4.0', '<')) die('require PHP > 5.4.0 !');

define('UPLOAD_PATH', './uploads/');
define('APP_NAME', 'app');
define('APP_PATH', './app/');
define('APP_DEBUG', false);
//开发环境下使用“dev" 上线后改为”prod"
define('APP_ENV', 'prod');
define('TMPL_PATH', './themes/');
define('RUNTIME_PATH', './runtime/');
define('THINK_PATH','./core/');
define('ROOT', dirname(__FILE__));

//进入安装目录
if(is_dir("install") && !file_exists("install/install.lock")){
    header("Location:/install/index.php");
    exit();
}

require(THINK_PATH.'Core.php');